package com.gr.labbackend.controller.manage.material;

import com.alibaba.fastjson.JSONObject;
import com.gr.labbackend.service.manage.material.GetMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetMaterialController {

    @Autowired
    private GetMaterialService getMaterialService;

    @GetMapping("/api/manage/material/get-record")
    public JSONObject getMaterial(@RequestParam int page) {
        return getMaterialService.getMaterial(page);
    }

}
